package org.example;

import java.nio.charset.StandardCharsets;

public class Demo {
    public static void main(String[] args) {
        String str = "abc";
        byte[] b = str.getBytes(StandardCharsets.UTF_8);

        int crc = 0;
        for(int i = 0; i < b.length; i++){
            crc+=b[i];
        }
        System.out.println(crc);
    }
}
